package com.lrh.just.api.respone;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author ling
 * @date 2022--02--10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class ResponeDTO {
    /**
     * 返回码
     */
    private String returnCode = "000000";

    /**
     * 返回提示语
     */
    private String returnMsg = "SUCCESS";

    /**
     * 信息体
     */
    private Object data;

    public ResponeDTO data(Object data){
        this.data = data;
        return this;
    }
}
